﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PPI.Entities.Interface;
using PPI.Entities.Lookup;
using PPI.Entities.Settings.Mobile;

namespace PPI.Entities.Lookup
{
    [Serializable]
    public class EHandheld : ELookupBase, IMobileSetting
    {
        public EHandheld()
            : base() 
        { }

        public EHandheld(Int32 id, string name)
            : base(id, name)
        { }

        public EnumMobileSettings MobileSettingKey
        {
            get { return EnumMobileSettings.Handheld; }
        }

        public override bool Equals(object obj)
        {
            if (obj is EHandheld)
            {
                EHandheld tmpObj = (EHandheld)obj;
                return (tmpObj.Name == Name);
            }
            else
                return false;
            
        }
    }
}
